﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Model.EntityModel.SysModel
{
    /// <summary>
    /// 系统操作日志表
    ///</summary>
    [SugarTable("OPERATE_LOG")]
    public class OperateLog
    {
        /// <summary>
        /// 日志ID 
        ///</summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 操作表名 
        ///</summary>
        [SugarColumn(ColumnName = "OPER_TABLE")]
        public string OperTable { get; set; }
        /// <summary>
        /// 操作类型(INSERT/UPDATE/DELETE) 
        ///</summary>
        [SugarColumn(ColumnName = "OPER_TYPE")]
        public string OperType { get; set; }
        /// <summary>
        /// 操作数据(JSON格式) 
        ///</summary>
        [SugarColumn(ColumnName = "OPER_DATA_JSON")]
        public string OperDataJson { get; set; }
        /// <summary>
        /// 操作人 
        ///</summary>
        [SugarColumn(ColumnName = "CREATED_BY")]
        public string CreatedBy { get; set; }
        /// <summary>
        /// 操作时间 
        ///</summary>
        [SugarColumn(ColumnName = "CREATED_AT")]
        public DateTime? CreatedAt { get; set; }
    }
}
